package com.baizhi.cmfzdemo.controller;

import com.baizhi.cmfzdemo.entity.CmfzUserDto;
import com.baizhi.cmfzdemo.service.CmfzUserDtoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by 54433 on 2019/4/4.
 */
@Controller
public class CmfzUserDtoController {
    @Autowired
    private CmfzUserDtoService cmfzUserDtoService;

    @RequestMapping("/queryBySex")
    @ResponseBody
    public List<CmfzUserDto> queryBySex(){
        cmfzUserDtoService.queryBySex();
        System.out.println(cmfzUserDtoService.queryBySex());
        return cmfzUserDtoService.queryBySex();
    }

}
